package com.dailyblue.js.db;

import lombok.SneakyThrows;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBManager {

    @SneakyThrows
    public static Connection getConnection() {
        Connection conn = null;
        Class.forName("com.mysql.cj.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/2411";
        String user = "root";
        String password = "123456";
        conn = DriverManager.getConnection(url, user, password);
        return conn;
    }
}
